package com.mojito.gorm;

import com.mojito.gorm.session.GormSession;
import com.mojito.gorm.session.impl.GormSessionFactory;
import com.mojito.gorm.test.PaymentUser;

/**
 * @author mojito
 */
public class BootApp {
    public static void main(String[] args) {
        GormSession session = new GormSessionFactory().build().openSession();

//        PayMapper mapper = (PayMapper) session.getMapper(PayMapper.class);
//        PaymentUser user = mapper.queryById(1L);
//        System.out.println(user);
        PaymentUser o = session.selectOne("com.mojito.gorm.test.PayMapper.queryById", 1L);
        System.out.println(o);
    }
}
